From: Louis Mayencourt Date: Mon, 29 Apr 2019 15:35:30 +0000 (+0100) Subject: romlib: Improve compilation flags definition X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=2b929c986b3ab226e55da85a2131b04d26684e9a;p=project%2Fbcm63xx%2Fatf.git romlib: Improve compilation flags definition * Optimization flags were only provided for debug build. * Set optimisation level to -O1 * Remove CFLAGS which is never used for romlib * Remove the ignored -g flag from LDFLAGS Change-Id: Id4b69026d8a322ed4cb0acf06c350f13d31571ad Signed-off-by: Louis Mayencourt --- diff --git a/lib/romlib/Makefile b/lib/romlib/Makefile index 12fdfa8e..7a3a51ea 100644 --- a/lib/romlib/Makefile +++ b/lib/romlib/Makefile @@ -24,9 +24,9 @@ else Q := endif +LDFLAGS := --gc-sections -O1 ifeq ($(DEBUG),1) - CFLAGS := -g - LDFLAGS := -g --gc-sections -O1 -Map=$(MAPFILE) + LDFLAGS += -Map=$(MAPFILE) endif